<!DOCTYPE html>
<html class="no-js " lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="cleartype" content="on">
    <!--<link rel="icon" href="">-->

    <title>订单确认</title>
    <!-- meta viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/common.css{$Think.config.RESOURCE_VER}" onerror="_cdnFallback(this)">
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/ordercommit1.css{$Think.config.RESOURCE_VER}" onerror="_cdnFallback(this)">
    <link rel="stylesheet" href="{$Think.config.RESOURCEURL}wx_assets/css/product/ordercommit2.css{$Think.config.RESOURCE_VER}" onerror="_cdnFallback(this)">        
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js{$Think.config.RESOURCE_VER}"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js{$Think.config.RESOURCE_VER}"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/product/product_test.js{$Think.config.RESOURCE_VER}"></script>
    </head>

<body class=" " style="padding-bottom:0">
<!-- container -->
<div class="container js-page-content wap-page-order lay_page">
    <div class="content confirm-container" style="height: auto">
        <div class="app app-order">
            <div class="app-inner inner-order" id="js-page-content">
                <!-- 通知 -->
                <div class="important-message js-counter-msg" style="display:none">
                    <h3>订单状态：等待买家付款</h3>
                    <hr>
                    <p>您于 2015/03/17 14:51:39 下的订单<br>请在 <span data-countdown="79063" class="js-mini-counter c-orange"><i class="mc-num-hours">21</i><span class="mc-text">小时</span><i class="mc-num-minutes">57</i><span class="mc-text">分</span><i class="mc-num-seconds">35</i><span class="mc-text">秒</span></span> 内付款，超时订单将自动取消。</p>
                </div>
                <!-- 商品列表 -->
                <div class="block block-order ">

                    <div class="block block-list block-border-top-none block-border-bottom-none">
                        <volist name="productList" id="order">
                            <div class="bottom" style='border-bottom:1px solid #e5e5e5'>订单编号：{$key}</div>
                            <volist name="order" id="product">
                                <div class="block-item name-card name-card-3col clearfix">
                                    <a onClick="onDetail('{$product.fromCustomerId}','{$product.pid}','{$product.sId}')" class="thumb">
                                        <img class="js-view-image" src="{$product.picUrl}@60w_60h_100Q" alt="{$product.name}">
                                    </a>
                                    <div class="detail">
                                        <a onClick="onDetail('{$product.fromCustomerId}','{$product.pid}','{$product.sId}')"><h3>{$product.name}</h3></a>
                                        <p class="c-gray ellipsis">
                                            <notempty name="product.sizeName">
                                                规格:{$product.sizeName}&nbsp;
                                            </notempty>
                                            <notempty name="product.colorName">{$product.colorName}&nbsp;</notempty>              </p>
                                    </div>
                                    <div class="right-col">
                                        <div class="price">
                                            <notempty name="product.discountedPrice">
                                                ￥<span>{$product['discountedPrice']}元</span>
                                                <else/>
                                                <notempty name="product.fixedPrice">
                                                    ￥<span>{$product['fixedPrice']}元</span>
                                                </notempty>
                                            </notempty>
                                        </div>
                                        <div class="num">×<span class="num-txt">{$product.reserveCount}</span></div>

                                    </div>
                                </div>
                            </volist>
                        </volist>
                        <div class="bottom">总价<span class="c-orange pull-right">
                    ￥&nbsp;<php>echo sprintf("%.2f",$price);</php>
                    </span></div></div></div>

                <div class="block block-order ">
                    <div class="order-message clearfix" id="js-order-message" style="padding:10px">
                        <textarea class="js-msg-container font-size-12" id="remark" placeholder="给卖家留言..."></textarea>
                    </div>
                </div>
            </div>
            <div class="js-logistics-content logistics-content js-express" style="  border-top: 1px solid #e5e5e5;  border-bottom: 1px solid #e5e5e5;">
                <div class="block block-form block-border-top-none block-border-bottom-none">
                    <div class="js-order-address express-panel" id="address"  style="padding-left:0;padding-right:10px">
                        <div id="addRbox" <if condition = "($fullName eq '') or (($phone eq '') or ($address eq ''))"> style="display:none" </if> >
                            <div class="opt-wrapper">
                                <a class="btn btn-xxsmall btn-grayeee butn-edit-address js-edit-address"  id="mdAddrBtn">修改</a>
                            </div>
                            <ul>
                                <li id="addr_fullName">{$fullName}</li>
                                <li id="addr_phone"> {$phone}</li>
                                <li id="addr_detail">{$address} </li>
                                <!--<li>辉煌国际</li>-->
                            </ul>
                        </div>
                        <empty name="fullName">
                            <div  id="toAddrList" style="padding:10px;border:1px solid #e0e0e0;border-radius: 5px;text-align: center;color:deepskyblue">添加收货地址</div>
                        </empty>
                    </div>
                    <div class="js-logistics-tips logistics-tips font-size-12 c-orange hide">很抱歉，该地区暂不支持配送。</div>
                </div></div>
            <div class="js-logistics-content logistics-content js-self-fetch hide"></div>

            <!-- 支付 -->
            <div class="js-step-topay">
                <!-- 如果不是赠品，则走正常逻辑 -->
                <div class="js-used-coupon block" style='display:none'><div class="block-item order-coupon relative">
                    <h4 class="block-item-title">优惠</h4>
                    <div class="coupon-info-container">
                        <div class="js-normal-coupon coupon-info">
                            <span class="">使用优惠</span>
                        </div>
                        <span class="arrow"></span>
                    </div>

                </div>
                </div>
                <div class="block" >
                    <div class="js-order-total block-item order-total"><p>
                        <if condition="$cost neq null AND $cost neq ''">
                            ￥  <php>echo sprintf("%.2f",$price);</php>+￥<php>echo sprintf("%.2f",$cost);</php>&nbsp;运费
                        <else/>
                            ￥<php>echo sprintf("%.2f",$price);</php>+￥0&nbsp;运费
                        </if>

                    </p>
                        <strong class="js-real-pay c-orange js-real-pay-temp">
                            需付：
                            <if condition="$cost neq null AND $cost neq ''">
                            ￥<php>echo sprintf("%.2f",$price+$cost);</php>&nbsp;元
                            <else/>
                                ￥<php>echo sprintf("%.2f",$price);</php>&nbsp;元
                            </if>
                        </strong></div>
                </div>

                <div class="action-container" id="confirm-pay-way-opts">
                    <div style="margin-bottom: 10px;">
                        <button type="button" data-pay-type="buy" id="submitOrder" class="btn-pay btn btn-block btn-large btn-umpay  btn-green">财付通支付</button>
                    </div>
                </div>
                <div class="center action-tip js-pay-tip" style="display:none">支付完成后，如需退换货请及时联系卖家</div>

            </div>
        </div>
    </div>
</div>
<div class="qb_quick_tip qb_none" id="bubble"></div>
<div class="mod_dialog qb_none" id="message-notice">
    <div class="dialog_mask"></div>
    <div class="dialog_main qb_br qb_tac">
        <div class="dialog_bd" id="notice-content"></div>
        <div class="dialog_ft qb_flex"><a href="javascript:void(0);" class="flex_box" id="notice-cancel">取消</a><a href="javascript:void(0);" class="flex_box" id="notice-sure">确定</a></div>
    </div>
</div>
<div id="js-self-fetch-modal" class="modal order-modal"></div>
<div class="footer" style="display:none">
    <!-- 商家公众微信号 -->
    <div class="copyright">
        <div class="ft-copyright">
            <a href="" target="_blank">由&nbsp;<span class="company">摩宝时代</span>&nbsp;免费技术支持</a>
        </div>
    </div>    
    </div>
</body>
<script>
var hrefParamsArray = GetSessionIdFromHref(window.location.search);
hrefParamsArray["userName"]='{$userName}';
function GetSessionIdFromHref(search){
　　  var args = search.substring(1); 
　　  var retval = new Array(); 
    args = args.split("&"); 
        for(var i = 0; i < args.length; i ++){ 
            str = args[i]; 
            var arg = str.split("="); 
            if(arg.length <= 1) continue; 
            
            if(arg[0] == 'params') {
                var params = decodeURIComponent(arg[1]);
                var obj = eval('(' + params + ')');
                if (obj.rootid != undefined) {
                    retval["rootid"] = obj.rootid;
                }
                if (obj.id != undefined) {
                    retval["id"] = obj.id;
                }
                if (obj.tplid != undefined) {
                    retval["tplid"] = obj.tplid;
                }
                if (obj.ptype != undefined) {
                    retval["ptype"] = obj.ptype;
                }
                if (obj.dtype != undefined) {
                    retval["dtype"] = obj.dtype;
                }
                if(obj.invoiceId != undefined){
                    retval["invoiceId"] = obj.invoiceId;
                }
            } else if(arg[0] == 'customerId') {
                retval["customerId"] = arg[1]; 
            }else if(arg[0] == 'userName'){
                retval["userName"] = arg[1]; 
            }
        } 
        return retval; 
}
var baseUrl = '{$Think.config.SERVER_HOST}';
var hrefPath = 'call.html?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
var basePath = 'call.json?customerId='+ hrefParamsArray["customerId"]+'&userName='+hrefParamsArray["userName"];
var rootId = hrefParamsArray["rootid"];
var orderId = hrefParamsArray['id'];
var tplid = hrefParamsArray["tplid"];


</script>
<script>

function onDetail(formCustomerId,pId,sId){
    var p={
        qId:qId,
        sId:sId,
        id:pId
    };
    p=encodeURIComponent(JSON.stringify(p));
    var detailUrl=baseUrl+'call.html?customerId='+formCustomerId+'&module=product&method=getProduct&params='+p;
    location.href=detailUrl;
};
</script>

<script type="text/javascript">
 var fullName = '{$fullName}';
 var phone = '{$phone}';
 var address = '{$address}';
 var sid = '{$lastBuyStoreId}';
 
 var type, totalPrice;
if ('{$price}' !== '' && ('{$points}' == '' || '{$points}' == '0')) {
    buyType = 'buy';
    totalPrice =  parseFloat('{$price}') * 100;
} else {
    buyType = 'point';
    totalPrice = parseFloat('{$points}');
}
mi.PRODUCT_ORDERPAY.init();
 </script>

</html>